package com.demo.bean;

public class Test {

	public static void main(String[] args) {
		UserDao userDao = new UserDaoImpl();		
		//userDao.saveUser();
		//userDao.deleteUser();
		UserDao proxyDao = (UserDao)ProxyFactory.getProxy(userDao);
		System.out.println(proxyDao.getClass().getName());
		proxyDao.saveUser();
		proxyDao.deleteUser();
	}

}
